#!/bin/bash

# testing

netstat=$(netstat -tuln)

testing=$(echo $netstat | grep ':80') 
if [ "$tesing" != "" ] ; then
	echo "WWW is running in your system"
fi

testing=$(echo $netstat | grep ':22')
if [ "$testing" != "" ] ; then
	echo "SSH is running in your system"
fi

testing=$(echo $netstat | grep ':21')
if [ "$testing" != "" ] ; then
	echo "FTP is running in your system"
fi

testing=$(echo $netstat | grep ':25')
if [ "$testing" != "" ] ; then
	echo "MAIL is running in your system"
fi
 
